using PBMessage;
using UnityEngine;
using System.Collections;
using GameUnit;
public class SC_CallUnitEvent_Handler :IPBHandler
{ 
    public void Exec(object packet) 
    {
        SC_CallUnitEvent PacketData = (SC_CallUnitEvent)packet;
        //Debug.Log("CallUnitEvent "+PacketData.EventName+" "+PacketData.subMessage);
        NGUIDebug.Log( PacketData.EventName  + PacketData.subMessage);
        UnitManager.GetUnit(PacketData.unitId).CallEvent(PacketData.EventName,PacketData.subMessage);
    }
}
